ids=($(docker ps --format	"{{.ID}}" --filter name-main-container))c
for (( i=0; i<${#ids[@]}; i++ )); do
    index=$((i/4))

    if [ $index -eq 0 ]; then
        start=0
        end=79
    elif [ $index -eq 1 ]; then
        start=80
        end=159
    elif [ $index -eq 2 ]; then
        start=160
        end=239
    elif [ $index -eq 3 ]; then
        start=240
        end=319
    fi
    
    echo	"${ids[$i]}"	"${start}-${end}'
    echo	"$start-$end ${ids[i]}'
    docker update --cpuset-cpus $start-$end ${ids[i]}
done